package HLLib.social;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.base.HLString;

public class HLGCAchievement extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_SOCIAL, HLClassManager_H.LIB_CLASS_SOCIAL_GCAchievement);
    }

    public int GetInt(int index) {
        return percentComplete;
    }

    public void SetInt(int index, int value) {
        percentComplete = value;
    }

    public boolean GetBoolean(int index) {
        switch (index) {
        case 0: {
            return completed;
        }
        case 1: {
            return hidden;
        }
        }
        return false;
    }

    public void SetBoolean(int index, boolean value) {
        switch (index) {
        case 0: {
            completed = value;
            return;
        }
        case 1: {
            hidden = value;
            return;
        }
        }
    }

    public HLObject GetObject(int index) {
        return identifier;
    }

    public void SetObject(int index, HLObject value) {
        identifier = (HLString) value;
    }

    public HLString  identifier;
    public int percentComplete;
    public boolean completed;
    public boolean hidden;

}
